<template>
  <div>
    <nav-bar class="nav-bar">
      <template slot="center">
        <div>购物车({{ getCartListLen }})</div>
      </template>
    </nav-bar>
  </div>
</template>
<script>
import NavBar from "components/common/navBar/NavBar";

import { mapGetters } from "vuex";
export default {
  name: "carnavbar",
  components: {
    NavBar,
  },
  computed: {
    ...mapGetters(["getCartListLen"]),
  },
};
</script>
<style scoped>
.nav-bar {
  background-color: var(--color-tint);
  color: #fff;
}
</style>
